/* creat.c
 *	Simple program to test whether creating program works.
 *	
 *	Creates a file if all is well
 *
 */

#include "syscall.h"

char buff[100];

int
main()
{
    creat("newfile.txt");
    int id = open("newfile.txt");
    buff[0] = 'h';
    buff[1] = 'e';
    buff[2] = 'l';
    buff[3] = 'l';
    buff[4] = 'o';
    int i;
    for (i = 0;i < 200000;i++)
        write(id,buff,5);
    write(id,buff,5);
    halt();
}

